Skip to content

Support request byValue and byReference and presentationDefinition #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 19, 2025

Conversation

wistefan
Copy link
Collaborator

@wistefan wistefan commented May 2, 2025

Requires CredentialConfigService > 3.x

@wistefan wistefan added the major Should be applied for all breaking changes. label May 2, 2025
@wistefan wistefan requested a review from pulledtim May 2, 2025 14:40
The object than can be retrived via:
```shell
curl https://verifier.org/api/v1/request/randomState
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it help to show an example value of the retrieved data here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I left it out, since its the same as in the line before.


didSigningKey, err := getRequestSigningKey(verifierConfig.ClientIdentification.KeyPath, verifierConfig.ClientIdentification.Id)
if (slices.Contains(verifierConfig.SupportedModes, REQUEST_MODE_BY_VALUE) || slices.Contains(verifierConfig.SupportedModes, REQUEST_MODE_BY_REFERENCE)) && err != nil {
logging.Log().Errorf("Was not able to get a signing key, despite mode %s supported. Err: %v", REQUEST_MODE_BY_VALUE, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to wrap the error with the additional description and return it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think since the log already is on error, it should be enough to return the root

@wistefan wistefan merged commit 7a34ed7 into main May 19, 2025
6 of 8 checks passed
@wistefan wistefan deleted the sd-jwt branch May 19, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Should be applied for all breaking changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants